<!DOCTYPE html>
<%@ include file="/include/taglib.jsp"%>
<%@ include file="/include/jstlVars.jsp"%>
<html>
<head>
<title><sitemesh:write property='title' /></title>
<meta name="description" content="" />
<meta name="keywords" content="HTML,CSS,XML,JavaScript" />
<meta name="author" content="Chris Tate" />
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<%@ include file="/include/style.jsp"%>
<%@ include file="/include/script.jsp"%>
<sitemesh:write property='head' />
</head>
<body>
	<div data-role="page" id="${fn:escapeXml(pageId)}">
		<script type="text/javascript">
		$('#${pageId}').bind( 'pageinit',function(event){
			initializePlugins('#${pageId}');
			if(typeof pageinit == 'function') { 
				pageinit(); 
			}
		});
		</script>
		<div data-role="header" data-position="fixed">
			<div class="ui-grid-a">
				<div class="ui-block-a">
					<div data-role="navbar" data-iconpos="right">
						<ul>
							<li>
								<c:choose>
									<c:when test="${requestURI == '/page/'}">
										<a href="/page/" data-transition="slidedown" class="ui-btn-active">Home</a>
									</c:when>
									<c:otherwise>
										<a href="/page/" data-transition="slidedown">Home</a>
									</c:otherwise>
								</c:choose>
							</li>
							<li>
								<c:choose>
									<c:when test="${fn:startsWith(requestURI, '/page/item/Doctor')}">
										<a href="/page/calendar.jsp" data-transition="slidedown" class="ui-btn-active">Calendar</a>
									</c:when>
									<c:otherwise>
										<a href="/page/calendar.jsp" data-transition="slidedown">Calendar</a>
									</c:otherwise>
								</c:choose>
							</li>
							<li>
								<c:choose>
									<c:when test="${fn:startsWith(requestURI, '/page/item/Doctor')}">
										<a href="/page/item/Grave/GraveIndex.jsp" data-transition="slidedown" class="ui-btn-active">Cemetery</a>
									</c:when>
									<c:otherwise>
										<a href="/page/item/Grave/GraveIndex.jsp" data-transition="slidedown">Cemetery</a>
									</c:otherwise>
								</c:choose>
							</li>
						</ul>
					</div>
				</div>
				<div class="ui-block-b">
					<div data-role="navbar" data-iconpos="right">
						<ul>
							<li>
								<a href="/fragment/FormsList.jsp" data-rel="dialog" data-transition="slidedown" data-role="button" data-icon="arrow-d">Forms</a>
							</li>
							<li>
								<c:choose>
									<c:when test="${not empty loginUrl}">
										<a href="${fn:escapeXml(loginUrl)}" data-ajax="false">Login</a>
									</c:when>
									<c:when test="${not empty logoutUrl}">
										<a href="${fn:escapeXml(logoutUrl)}" data-ajax="false">Logout</a>
									</c:when>
								</c:choose>
							</li>
							<c:if test="${not empty user}">
								<li>
									<a href="/page/item/Page/PageIndex.jsp">Pages</a>
								</li>
							</c:if>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div data-role="content">
			<c:if test="${not empty param.message}">
				<div data-role="header" class="ui-bar ui-bar-e">${fn:escapeXml(param.message)}</div>
			</c:if>
			<div data-role="header" data-theme="c">
				<div class="floatLeft">
					<a href="/page/" data-role="button" data-inline="true" class="logo_button">
						<span class="cityTitle">City of Ucon, Idaho</span>
						<span class="logo_button_span"></span>
					</a>
				</div>
				<div class="floatRight">
					<div>
						<a href="tel:2085233971" data-role="button" data-mini="true" data-inline="true" data-icon="grid">(208) 523-3971</a>
					</div>
					<div>
						<a href="https://maps.google.com/maps?q=ucon,+ID&hl=en&ll=43.594099,-111.958451&spn=0.02213,0.052271&sll=43.592825,-111.95343&sspn=0.02213,0.052271&t=m&hnear=Ucon,+Bonneville,+Idaho&z=15&iwloc=A" data-role="button" data-mini="true" data-inline="true" data-icon="home">
							PO BOX 98
							<br/>UCON, ID&nbsp;&nbsp;83454
						</a>
					</div>
					<div>
						<form method="get" action="http://www.google.com/search">
							<div data-role="fieldcontain" class="ui-hide-label"> 
								<label for="google-search">Google uconidaho.com:</label>
								<input type="search" name="q" id="google-search" placeholder="Google uconidaho.com:" value="" />
								<input type="hidden" name="sitesearch" value="uconidaho.com"/>
							</div>
						</form>
					</div>
				</div>
			</div>
			<sitemesh:write property='body' />
			<form name="ComputateForm" class="ComputateForm">
				<c:choose>
					<c:when test="${empty user}">
						<input type="hidden" class="ComputateForm_isUser" name="isUser" value="false"/>
					</c:when>
					<c:otherwise>
						<input type="hidden" class="ComputateForm_isUser" name="isUser" value="true"/>
					</c:otherwise>
				</c:choose>
			</form>
		</div>
	</div>
</body>
</html>
